<template>
  <div id="trunk">
    <vHead appPath="/netteach" appTitle="网络教研">
        <router-link to="/netteach/add"><el-button type="primary" v-if="flag">发起评课</el-button></router-link>
    </vHead>
    <main class="main i_maxW">
      <router-view />
    </main>
    <vFoot />
  </div>
</template>

<script>
import vHead from "@/components/common/header";
import vFoot from '@/components/common/footer';
export default {
    components: {
        vHead,
        vFoot
    },
    computed: {
        flag(){
            return this.$route.name == 'add' ? false : true;
        }
    }
}
</script>
<style lang="scss">
.main {
  box-sizing: border-box;
  min-height: calc(100vh - 124px);
  padding: 25px 0 40px;
}
@import "./../../../assets/css/netteach.scss";
</style>